import {setupLayouts} from 'virtual:generated-layouts'
import {createRouter, createWebHistory} from 'vue-router'
import {routes} from 'vue-router/auto-routes'
import publicRouter from "@/router/publicRouter";
import {handleHotUpdate} from 'vue-router/auto-routes';

const router = createRouter({
    history: createWebHistory(),
    routes: [...setupLayouts(routes), ...publicRouter],
})

export default router

if (import.meta.hot) {
    handleHotUpdate(router)
}
